package cn.bonoon.controllers.faq;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = FaqCondition.class, value = @GridOptions(operationWith = 120, fitColumns = true))
public class FAQItem extends AbstractItem implements FaqDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2951951601927726162L;

	@AsColumn(width = 400, ordinal = 0)
	@Cutoff(100)
	private String question;

	@AsColumn(width = 80, ordinal = 1)
	private String creatorName;

	@AsColumn(width = 150, ordinal = 2)
	private String createAt;

	@AsColumn(width = 200, ordinal = 3)
	@Cutoff(50)
	private String answer;

	@AsColumn(width = 80, ordinal = 4)
	private String level;

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

}
